const functionModule = [
  { name: '首页', path: '/home' },
  { name: '原料采购', path: '/traceabilitySystem/material' },
  { name: '原料仓库', path: '/traceabilitySystem/warehouse/materiaWare' },
  {
    name: '成品仓库',
    path: '/traceabilitySystem/warehouse/finishedWareHouse',
  },
  { name: '清洗切割', path: '/traceabilitySystem/production/cleanCutting' },
  { name: '烫煮冷却', path: '/traceabilitySystem/production/boilingCooling' },
  { name: '质检信息', path: '/traceabilitySystem/qualityTest' },
  { name: '物流信息', path: '/traceabilitySystem/logistics' },
  { name: '包装信息', path: '/traceabilitySystem/pack' },
  { name: '数据大屏', path: '/redirectDataScreen' },
  { name: '菜品推荐', path: '/recommend' },
  { name: '溯源查询', path: '/traceabilityQuery' },
  { name: '商品管理', path: '/shopmanage/product' },
];

export default {
  'GET /api/function': (req: any, res: any) => {
    res.json({
      success: true,
      data: { functionModule },
      errorCode: 0,
    });
  },
};
